home *** CD-ROM | disk | FTP | other *** search
/ The Trig Explorer / The Trig Explorer.iso / mac / Explorer / START.dxr / 00101.ls < prev    next >
Encoding:
Text File  |  1998-07-22  |  548 b   |  24 lines

  1. on mouseUp
  2.   global NotesOn
  3.   if NotesOn = 0 then
  4.     set NotesRect to rect(the stageLeft + 5, the stageTop + 240, the stageLeft + 320 + 5, the stageBottom)
  5.     set Notes to window "NotePad"
  6.     set the rect of Notes to NotesRect
  7.     set the fileName of Notes to "NotePad"
  8.     if the machineType = 256 then
  9.       set the windowType of Notes to 49
  10.     else
  11.       set the windowType of Notes to 5
  12.     end if
  13.     set the titleVisible of Notes to 1
  14.     open(Notes)
  15.     set NotesOn to 1
  16.   else
  17.     closeNotes()
  18.   end if
  19. end
  20.  
  21. on mouseDown
  22.   button()
  23. end
  24.